﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<KabiManagementWeb.Models.Admin>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Tạo Admin
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Tạo Admin</h2>

    <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Thông tin</legend>
            
            <div class="editor-label">
               Tên truy cập
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.UserName) %>
                <%= Html.ValidationMessageFor(model => model.UserName) %>
            </div>
            
            <div class="editor-label">
               Mật khẩu
            </div>
            <div class="editor-field">
                <%= Html.PasswordFor(model => model.Pass) %>
                <%= Html.ValidationMessageFor(model => model.Pass) %>
            </div>
            
            <div class="editor-label">
               Quyền hạn
            </div>
            <div class="editor-field">
                <%= Html.DropDownListFor(model => model.RoleID,(SelectList)ViewData["role"]) %>
                <%= Html.ValidationMessageFor(model => model.RoleID) %>
            </div>
            
           
            <p>
                <input type="submit" value="Tạo mới" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%= Html.ActionLink("<- Quay lại", "Index") %>
    </div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptZone" runat="server">
</asp:Content>

